package com.light.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.common.dto.savespuinfo.SaveSpuInfoDTO;
import com.light.common.utils.PageUtils;
import com.light.gulimall.product.entity.SkuInfoEntity;
import com.light.gulimall.product.vo.SkuDetailsVO;

import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author minmin
 * @email 980680541@gmail.com
 * @date 2024-07-15 21:42:34
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * sku检索
     * @param params    查询条件
     * @return  分页结果
     */
    PageUtils queryByCondition(Map<String, Object> params);


    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    /**
     * 根据SkuId查询详情信息
     * @param skuId skuId
     * @return  查询结果
     */
    SkuDetailsVO skuItem(Long skuId);
}

